package teaching.service;

import org.springframework.stereotype.Service;
import teaching.mapper.CourseCommentMapper;
import teaching.pojo.CourseComment;

import javax.annotation.Resource;
import java.util.List;

/**
 * Author:20201002983_郑雨蓓
 * Date: 2024/4/15
 * Description:
 */
@Service
public class CourseCommentService {
    @Resource
    private CourseCommentMapper courseCommentMapper;

    public List<CourseComment> getAll(long cid) {
        return courseCommentMapper.getAll(cid);
    }

    public int addComment(CourseComment comment) {
        return courseCommentMapper.addComment(comment);
    }
}
